public class Main {
    public static void main(String[] args) {
        Animal animal = new Dog();
        animal.shout();
        animal.run();
    }
}

class Animal {
    void shout() {
        System.out.println("animal shout！");
    }

    // 添加 run 方法，提供默认实现
    void run() {
        System.out.println("Animal is running");
    }
}

class Dog extends Animal {
    @Override
    void shout() {
        super.shout();
        System.out.println("wangwang……");
    }

    @Override
    void run() {
        System.out.println("Dog is running");
    }
}